package org.dong.mapper;

import org.apache.ibatis.annotations.Param;
import org.dong.pojo.Order;
import org.dong.pojo.qo.OrderQo;

import java.util.List;

public interface OrderMapper {
   Integer addOrder(@Param("o") Order order);

   List<OrderQo> getOrderList(@Param("sDate") String sDate,@Param("eDate")String eDate,@Param("sName")String sName,@Param("sCardId")String sCardId,@Param("sMeal")String sMeal,@Param("page")int page);

   Integer getOrderListCount(@Param("sDate") String sDate,@Param("eDate")String eDate,@Param("sName")String sName,@Param("sCardId")String sCardId,@Param("sMeal")String sMeal);


   Integer updateOrder(@Param("id") Integer id,@Param("codeUrl")String codeUrl,@Param("status")Integer status);//根据Id更新订单内容

   Order getOrderInfo(@Param("id")Integer id,@Param("orderSn")String orderSn);


   Integer updateOrderInfoContent(@Param("id") Integer id,@Param("status") Integer status,@Param("content") String content);
}
